import {createAction, createThunkAction} from "../../lib/redux-utils";
import {postJson} from "../../lib/http";

const path = "/notice";
const ACTION_PREFIX = "NOTICE.";
export const query = createThunkAction(ACTION_PREFIX + "QUERY", params =>
    postJson(path + "/queryHistory", params)
);
export const showCreate = createAction(ACTION_PREFIX + "SHOW_CREATE");
export const hideCreate = createAction(ACTION_PREFIX + "HIDE_CREATE");
export const showModify = createAction(ACTION_PREFIX + "SHOW_MODIFY");
export const hideModify = createAction(ACTION_PREFIX + "HIDE_MODIFY");